<!--{include admin/top.html}-->
	<div class="mainPage">
		<!--{if $act == 'get'}-->
		<h1 class="title">获取激活用户</h1>
		<p>
			<!--{if $logs}-->
				<span style="color:gray;font-size:13px;">
				{:date("Y-m-d H:i:s",$logs['dateline'])} 
				获取到: <b style="color:blue">{$logs['count']}</b> 个用户 ,
				读取到: 第 <b style="color:blue">{$logs['pos']}</b> 封邮件
				</span>
			<!--{/if}-->
		</p><br/>
		<p>
			邮箱中共有&nbsp;<b style="color:red">{$mc}</b>&nbsp;封邮件 ,
			新增&nbsp;<b style="color:red">{$nc}</b>&nbsp;封邮件&nbsp;,
			<a href="{:parse_uri('admin_members-getUsers')}">开始获取已经激活的用户!</a>
		</p>
		<!--{else if $act == 'list'}-->
			<h1 class="title">用户列表</h1>
			<form id="frm" style="margin:0;padding:0;" method="post" action="{:parse_uri('admin_members-pro')}" >
			<table align=center width=99%  cellspacing=0 cellpadding=0 >
			<tr style="">
				<td width="8%">
					<p style="line-height:20px;">
						<b>编号</b>
					</p>
				</td>
				<td width="15%">
					<p style="line-height:20px;">
						<b>手机号码</b>
					</p>
				</td>
				<td width="10%">
					<p style="line-height:20px;">
						<b>是否激活</b>
					</p>
				</td>
				<td width="25%">
					<p style="line-height:20px;">
						<b>是否获奖</b>
					</p>
				</td>
				<td  width="20%">
					<p style="line-height:20px;">
						<b>激活时间</b>
					</p>
				</td>
				<td >
					<p style="line-height:20px;">
						<b>操作</b>
					</p>
				</td>
			</tr>
			<!--{if $mems}-->
			<!--{foreach $mems $k $v}-->
			<tr class="ctr">
				<td >
					<p style="line-height:20px;">
						<input type="checkbox" name="Id[]" id="chkbox" value="{$v['Id']}" />
					</p>
				</td>
				<td >
					<p style="line-height:20px;">
						{$v['pn']}
					</p>
				</td>
				<td>
					<p style="line-height:20px;">
						<!--{if $v['status']=='0'}-->
							<span style="color:gray">尚未激活</span>
						<!--{else}-->
							<span style="color:green">已经激活</span>
						<!--{/if}-->
					</p>
				</td>
				<td >
					<p style="line-height:20px;">
						<!--{if $v['gid']}-->
							<span style="color:#500">{$v['gname']}</span>
						<!--{else}-->
							<span style="color:gray">未获取</span>
						<!--{/if}-->
					</p>
				</td>
				<td>
					<p style="line-height:20px;">
						{:date('Y-m-d H:i:s',$v['dateline'])}
					</p>
				</td>
				<td >
					<p style="line-height:20px;">
					
					</p>
				</td>
			</tr>
			<!--{/foreach}-->
			<tr>
				<td colspan="6">
					<p style="line-height:30px;color:gray;margin-top:10px;">
					<input type="checkbox" onclick="chkAll(this)" /> 选择
					第 {$pobj->currPage} / 共 {$pobj->maxPage} 页 |
					每页 {$pobj->pageSize} 条 |&nbsp;
					转到 第
					<select id ="purl" style="width:50px; height:18px;font-size:10px;" onchange="location.href=this.value;">
					{for i in range(1,intval($pobj->maxPage+1))}
					{if intval($i) == intval($pobj->currPage) }
						<option selected value='{:parse_uri('admin_gift-log-p-%d',$i)}'>{$i}</option>
					{else}
						<option value='{:parse_uri('admin_gift-log-p-%d',$i)}'>{$i}</option>
					{/if}
					{/for}
					</select> 页
					</p>
				</td>
			</tr>
			<!--{else}-->
			<tr>
				<td  colspan=6>
					<p style="line-height:20px;color:gray;text-indent:40px;text-align:left;">暂时没有数据!</p>
				</td>
			</tr>
			<!--{/if}-->
		</table>
		</form>
		<script>
			function chkAll(obj){
				$("#frm input[@type='checkbox']").attr("checked",obj.checked);
			}
		</script>
		<!--{/if}-->
		<p>&nbsp;</p>
	</div>
</body>
</html>